package com.qidian.mes.md.service;

import com.qidian.mes.pojo.MaterialSupporter;
import com.qidian.mes.pojo.MdSupport;
import com.qidian.mes.util.pojo.QdResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: CoolPro
 * @Description:
 * @Time: 2024-04-08 22:36
 **/
public interface SupporterService {
    QdResult addSupporter(MdSupport supporter);

    QdResult deleteSupporterById(Long id);

    QdResult updateSupporter(MdSupport supporter);

    QdResult findSupporterById(Long id);

    QdResult findAllSupporters();

    QdResult getCount();

    QdResult findSupportersByCriteria(String keyword, Integer level, Integer score, int page, int size);

    QdResult findSupporterByMat(String name,Integer status,  Integer page, Integer size,Integer matId);

    QdResult insertMatSup(MaterialSupporter materialSupporter);

    QdResult deleteByIdSupport(Integer idSupport,Integer idMat);

    QdResult updateSupportCount(String data);

}
